home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / handson / supercede / Knowodys / Projects / mq_projects.exe / MindQ_Projects / Syntax / Calculate / hoeCalculate.txt next >
Encoding:
Text File  |  1997-08-13  |  825 b   |  19 lines

  1. Launch a Java development environment from your desktop 
  2. or select it from the task bar if it is already running. 
  3. Then follow the instructions below.  
  4.  
  5. Step 1: Write an application that initializes two 
  6. integers to A=-12  and B=2. Have the method compute each 
  7. of the following:  A & B, A | B,  A << B, A >> B, and A 
  8. >>> B. Each value should also be printed to the standard
  9. output.
  10.  
  11. Step 2: Add a method to your application that generates 
  12. two random doubles between 0.0 and 90.0 that represent 
  13. degrees of angles. Next, find the larger of the two 
  14. degree measures, compute the ceiling of the larger one, 
  15. then compute the tangent of the result after converting 
  16. the degree measure to radians. Each intermediate result 
  17. should be printed to the standard output.
  18.  
  19. Step 3: Compile and run your application.